<extend name="desktop_default/template/base_index2" />

<block name="area_header">

	<style type="text/css">
		body {
			background-color: #F5F5F5 ;
			padding: 0;
		}
		.yinying{box-shadow: 0 0 40px #8C8C8C;}
		.xm-star-goods-item{ width: 23%; margin-left: 12px; background-color: #FFFFFF;}
		.current_page_item {
			z-index: 9999;
		}
		
		.hr {} .main_menu {
			margin-left: 100px;
		}
		
		.box-bd {
			height: 300px;
			width: 1000px;
			/*background-color: #FFFFFF;*/
			margin: 30px auto;
			padding: 10px;
		}
		.titles {
			height: 100px;
			float: left;
			width:500px;
			padding: 10px;
			font-size: 17px;
			margin-top: 20px;
			margin-left: 20px;
			/*border: 1px solid #cccc77;*/
			/*text-align: center;*/
		}
		.fx{width: 460px;float: left; background-color: white; margin-left: 15px; padding: 10px; height: 560px;
            margin-top: 10px;}
		.font_time_style{color:red}
		.ck{background-color: #B02751;}
		.ck a:hover{color: white;}
        .dis_price{
            background: url(__IMG__/zk1.png);
            padding: 2px;
            margin-left: 200px;
            margin-top: -80px;
            border: 0;
            padding-right: 1px;
            color: white;
            text-align: right;
            height: 23px;
            width: 65px;
        }

	</style>
	<script type="text/javascript" src="__JS__/sco.countdown2.js"></script>
</block>

<block name="area_body">

	<include file="desktop_default/width/right" />


	<header class="header">
		<include file="desktop_default/width/top" />
        {:W('Partials/nav_group')}
	</header>

    <div class="am-slider am-slider-default" data-am-flexslider="{animation: 'slide', slideshow: true }" id="demo-slider-0">
        <ul class="am-slides">
            <volist name="banners" id="b">
                <li data-transition="boxfade" data-slotamount="5" data-masterspeed="300">
                    <img onclick="toUrl(this)" src="{:C('SITE_URL')}{$b['path']}" data-url="{:C('SITE_URL')}{$b['url']}" alt=""  style="cursor: pointer;">
                </li>
            </volist>
        </ul>
    </div>


	<div class="shop-container am-container" >

		<img data-original="__IMG__/hh1.png" class="lazy" src="{:C('IMGURL')}" >

		<div class="new-goods am-cf">
				<div class="box-hd" style=" background-color: #FFFCFC; height: 55px; width: 100%; margin: 0 auto;">
					<img style="margin-top: -5px;" src="__IMG__/new.png">
					<font size="3" color="#8C8C8C">近期新鲜上架的商品</font>
				</div>

                <volist name='new' id='vo'>
                    <div class="am-u-lg-3 am-u-md-3 am-margin-top-lg am-center ">
                        <div class="goods-item  am-center  am-text-center">
                        <span class="item-thumb">
                            <a href="{:U('Shop/Product/detail',array('id'=>$vo['id']))}">
                                <img STYLE="width:160px;height:160px;" src="{:U('Api/Picture/index',array('id'=>$vo['main_img']))}" >
                            </a>
                        </span>
                        <span class="item-title am-padding-right-sm"></span>
                        <br><span class="am-block item-desc am-padding-right-sm am-text-left am-text-truncate" style=" text-indent: 1rem;height: 2rem;">{$vo.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <br><span class="item-price am-padding-right-sm" style="color: red;">{$vo.price}元&nbsp;&nbsp;&nbsp; </span><del style="color: #ccc">{$vo.ori_price}元</del>
                        </div>
                    </div>
                </volist>

		</div>

        <!-- 活动商品 -->
		<div class="flash-sales-goods am-cf">

            <div class="box-hd" style=" background-color: #FFFCFC; height: 55px; width: 100%; margin: 0 auto;">
            <img style="margin-top: -5px;" src="__IMG__/hd.png">
            <font size="3" color="#8C8C8C">近期限时活动</font>

            </div>

				<volist name="flash_sales" id="fs">
					<div class="am-padding-sm am-u-lg-12 am-u-md-12" style="background-color: white;">
                        <div class="am-fl am-text-center" style="width: 40%;">
						<a href="{:U('Shop/Product/detail',array('id'=>$fs['id']))}">
                            <img style="height: 280px;width: 280px;"  src="{:U('Api/Picture/index',array('id'=>$fs['main_img']))}"  >
                        </a>
                        </div>
						<div class="titles">
                            {$fs.name}
							<br>
								<span>{$fs.synopsis}</span>
							<br>

							<span class="am-link-muted am-text-xs">限时价：￥<span class="am-text-danger">{$fs.price}</span> 元<br>
								原价：<del>{$fs.ori_price}</del>元
                                <div class="dis_price" ><small class="am-block am-padding-right-xs">{:round(10.0*$fs['price']/$fs['ori_price'],1)}折</small></div>
							</span>

							<div style="border-bottom: 1px solid #F5F5F5; border-top: 1px solid #F5F5F5; width: 150%; height: 62px;">
								<div style="float: left; width: 130px;">
									<br><span style=" font-size: 14px; color: #8C8C8C;   padding-left: 20px;"></span></div>
								<div style="float: left;  height: 66px;">
									<a href="{:U('Shop/Product/detail',array('id'=>$fs['id']))}"> <img style="margin-left: 190px; height: 70px;" alt="" src="__IMG__/buynow.png"></a>
								</div>
							</div>

							<br><i class="am-text-danger am-icon-volume-up">距离活动结束剩余：</i><span class="div_time" data-until="{$fs.end_time}" style="margin-left: 80px;font-size: 20px;color:#999"></span>

						</div>

					</div>
                    <hr data-am-widget="divider" style="margin:0px;" class=" am-u-lg-12 am-u-md-12 am-divider am-divider-dotted" />

                </volist>

		</div>

        <!-- 热门商品 -->

		<div class="hot-goods am-cf">
            <div class="am-u-lg-12 am-u-md-12" style=" background-color: #FFFCFC; height: 55px; margin: 0 auto;">
                <img style="margin-top: -5px;" src="__IMG__/hot.png">
                <font size="3" color="#8C8C8C">热门商品</font>

            </div>
            <volist name="hot" id="vo">

                <div class="am-padding-lg am-u-lg-6 am-u-md-6 am-fl " style="background-color: #FFFFFF;" >
                    <a class="pic" href="{:U('Shop/Product/detail',array('id'=>$vo['id']))}" target="_blank" title="{$vo['name']}">

                        <img class="am-img-responsive" style="width:100%;" src="{:U('Api/Picture/index',array('id'=>$vo['main_img'],size=>480))}"   alt="{$vo['name']}" title="{$vo['name']}"
											 height="360px">
                    </a>

                    <div class="" style="padding: 10px;background: #ffffff;height: 180px;">
                            <div class="">
                                <span>{$vo['loc_country']}{$vo['loc_province']}{$vo['loc_city']}{$vo['loc_area']}</span>
                            </div>
                            <h3 class="">
                                <a target="_blank" href="{:U('Shop/Product/detail',array('id'=>$vo['id']))}" title="{$vo['name']}">
									<strong style="color: #000000; font-size: 16px;">{$vo['name']}</strong>
                                </a>
                            </h3>

                            <p class="">
                                <label class="">单价:</label><strong><span class="symbol" style="font-size: 18px; color: red;">¥{$vo['price']}</span></strong>
                                <br><del>国内参考价 ¥{$vo['ori_price']}</del>
                            </p>
                        </div>
                </div>
            </volist>
		</div>
	</div>



	<include file="desktop_default/width/floor" />
</block>

<block name="area_footer">
	<script type="text/javascript">
		$(function() {

			$(".div_time").each(function(){
				var until = $(this).data("until");
				until = parseInt(until);
				$(this).scojs_countdown({until: until});
			})

		});
	</script>

</block>